import request from '@/utils/request'

export function getAllTeacher() {
  return request({
    url: '/teacher/getAllTeacher',
    method: 'get',
  })
}

export function addOneTeacher(data) {
  return request({
    url: '/teacher/addOneTeacher',
    method: 'post',
    data
  })
}
export function updateOneTeacher(data) {
  return request({
    url: '/teacher/updateOneTeacher',
    method: 'post',
    data
  })
}
export function deleteOneTeacher(tId) {
  return request({
    url: '/teacher/deleteOneTeacher',
    method: 'get',
    params:{tId}
  })
}
export function search(keyWord) {
  return request({
    url: '/teacher/search',
    method: 'get',
    params:{keyWord}
  })
}
export function getTeachCourseInfo(tId) {
  return request({
    url: '/teacher/getTeachCourseInfo',
    method: 'get',
    params:{tId}
  })
}
export function teachRating(data) {
  return request({
    url: '/teacher/teachRating',
    method: 'post',
    data
  })
}


